package com.atcc.test.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atcc.test.mapper.UserMapper;
import com.atcc.test.pojo.BasicUser;
import com.atcc.test.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;

	@Override
	public List<BasicUser> queryAllBasicUser() {
		return userMapper.queryAllBasicUser();
	}
	
	@Override
	public void saveBasicUser(BasicUser basicUser) {
		userMapper.saveBasciUser(basicUser);
	}
	
	@Override
	public BasicUser queryBasicUserByuserId(int userId) {
		return userMapper.queryBasicUserByUserId(userId);
	}
	
	@Override
	public BasicUser queryBasicUserByName(String userName) {
		return userMapper.queryBasicUserByUserName(userName);
	}

}
